import Reflux from 'reflux';
import StateMixin from 'reflux-state-mixin';
import MenuAction from 'pages/framework/actions/menuAction'

export default Reflux.createStore({
  mixins: [StateMixin.store],
  listenables: [MenuAction],
  getInitialState() {
    return {
      current: {
        // parent: '工单',
        // title: '所有工单',
        // url: 'all'
      }
    }
  },
  onChangeCurrent(current) {
    this.setState({
      current: current
    })
  }
})
